<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Product extends Model
{
    use SoftDeletes;
    protected $dates = ['deleted_at'];
    protected $guarded = [];
    public function brand()
    {
        return $this->belongsTo('App\Models\Brand');
    }
    public function product_gralleries()
    {
        return $this->hasMany('App\Models\ProductGrallery');
    }
    public function categories()
    {
        return $this->belongsToMany('App\Models\Category');
    }
}
